Repository navigation
chore: release packages - #126
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@openagentpack/[email protected]
Minor Changes
3df5c92: 为百炼多智能体名册增加原生
{type: "self"}成员,可独立使用或与项目 Agent、外部 Agent 混用。补齐声明类型与严格校验、引用解析、发布映射、导出和漂移比较。Self 不生成普通自引用或额外受管资源,
计入名册上限并禁止重复及附带 ID/版本字段;其他 Provider 明确拒绝未验证的 Self 能力。
3df5c92: Add native Bailian Memory Store, memory file, and historical version APIs, including store archive, file rename, content SHA preconditions, version redaction, and opaque
page/next_pagepagination. Preserve native absolute paths, response fields, operation names, and service errors.Enable declarative Bailian Memory Stores with ID-only identity, explicit import, declared-key metadata reconciliation, and recoverable initialization. Persist the created store ID and pending initializer hashes before writing content; retries resume missing pending paths without overwriting existing files. Existing and imported stores preserve runtime content by default, while explicit
entries_mode: syncmanages declared paths. Removing a store and applying, or destroying it, irreversibly archives it.Resolve logical Memory references into native Session resources with access settings, instructions, deduplication, and an eight-store limit. Block Session mounting until initialization completes and reject Memory mounts in file-only Bailian Deployments.
3df5c92: 为百炼 BMA Session 增加显式开启的结构化事件快照和正文/推理增量订阅。SDK 按消息与内容块
归并累计快照,保留工具调用、线程、审批、错误和多模态内容;从已确认的
mark_artifacts工具结果派生文件描述,继续复用现有
SessionEvent契约。补齐 SSE 分块解析、连接就绪回调、取消、超时及可选的断流后历史核对恢复。高层发送入口
通过
stream传递配置,恢复不会重发用户消息。sanitizer 支持结构化快照的递归脱敏和按文本叶子截断。旧调用仍使用 legacy 输出,默认脱敏和截断、默认不重连的行为保持不变。
3df5c92: 为百炼 Managed Agents 增加会话运行时资源 API(挂载/列出/查详情/卸载),支持向已创建的
Session 动态追加文件:
mountRemoteSessionResource、listRemoteSessionResources、getRemoteSessionResource、unmountRemoteSessionResource(bailian adapter 的mountSessionResource/listSessionResources/getSessionResource/unmountSessionResource可选方法)。中性层沿用全沙箱路径(
/mnt/session/uploads/…),bailian wire 自动换算为运行时端点要求的
/uploads/…前缀并在非法根路径上客户端拒绝;资源响应补齐SessionResourceInfo.id(
sesrsc_…,卸载凭据)。挂载与卸载不产生会话事件;provider 返回的file_id是服务端内部副本id,完整载荷保留在
attributes中。运行时挂载不进入getSession的resources回显,对账请使用列表端点。合同经 2026-11-02 live 实测校准。
上述四个 SDK 入口接受仅含 Provider 配置的
ManagedApiContext,无需项目配置或本地 State;现有
ProjectRuntimeContext调用保持兼容。3df5c92: 新增百炼资源用量查询:
listModelUsage/listToolUsage对接 app-controlusage.listModelUsage/usage.listToolUsage,支持 workspace/agent/session 三种 scope、毫秒级 time_range 交叉校验(session 禁止、其余必传)、来源与名称过滤及分页排序,并公开UsageScope、ModelUsagePage、ToolUsagePage等类型。apps/server 同步暴露POST /api/usage/models、POST /api/usage/tools并刷新 OpenAPI 快照。3df5c92: 新增浏览器安全的
createBailianSessionEventNormalizer,从@openagentpack/sdk/session-events接收原始百炼业务帧并输出累计
SessionEvent。历史进行中消息保留展示及运行身份,等待完整快照后恢复正文;完成消息保护、按实例隔离和有界缓存避免重连期间重复追加。既有 SDK 入口与
sanitizer 默认脱敏、截断行为不变。
同一浏览器子路径公开导出现有
SessionEvent类型,纯浏览器调用方无需通过 SDK Node 主入口引用事件契约。3df5c92: 为
sanitizeSessionEvent()和sanitizeSessionEvents()增加独立的redact与truncate配置,保留默认开启脱敏和截断的行为。需要完整 SSE 内容的调用方可显式传入
{ redact: false, truncate: false }。导出SessionEventSanitizerOptions类型,让
metadata.tool_input使用同一脱敏策略,并保持includeRaw独立。3df5c92: 新增对象声明的字面正文解析选项与公开内存 state 管理器,支持宿主使用数据库保存检查点。默认正文文件解析、文件 state 和现有发布行为保持兼容。
3df5c92: Default declarative memory entries to initialization of newly created stores only. Existing, imported, or adopted stores retain their runtime content, and initialization-only entry changes no longer schedule updates. Add entries_mode: sync as an explicit opt-in to the previous continuous YAML synchronization behavior.
3df5c92: 新增百炼 Session 子 Agent 线程列表和事件历史查询,保留分页、取消及完整快照语义,并公开浏览器可用的线程类型。
3df5c92: Add workspace-level Bailian Webhook endpoint management and delivery-event queries through a provider-only API context. Expose endpoint URL normalization and cancellable requests while preserving one-time signing-secret responses, opaque pagination cursors, request IDs, and provider errors. These APIs do not read project files or write project state.
Patch Changes
3df5c92: Support Bailian builtin-tool approval policies during validation and Agent create/update. Preserve toolkit defaults and per-tool overrides in provider requests and exports, detect effective approval changes during drift comparison, and retain legacy allow-only comparison baselines. Reject effective approval policies on project-declared subagents and delegated Self; fail closed when an implicitly enabled remote tool catalogue cannot be exported losslessly.
3df5c92: Identify Bailian Memory Stores by their remote ID rather than their non-unique display name. Disable name-based conflict adoption, create a new store when no remote ID is recorded, and exclude archived stores from ID-based lifecycle lookups.
3df5c92: 修复百炼 BMA Session 混合流中 event_start/event_delta 的身份及正文累积,避免首个推理分片触发协议错误;保留完整消息、线程身份和断流恢复语义。
3df5c92: 修复会话文本处理中的两处正则回溯风险,使用线性扫描识别 Markdown 链接和 HTML 标签,保留媒体签名链接、敏感信息脱敏与截断边界的既有行为。
3df5c92: Allow MCP toolkit configs and agent-builder tool overrides to be omitted or empty. Bailian requests normalize missing overrides to an empty array, so default_config.enabled can enable all MCP tools without placeholder names. Preserve the disabled default and explicit per-tool overrides.
3df5c92: 修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。
修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。
将 Playground 的
@hono/node-server最低版本升级至2.1.6,修复上游 WebSocket 连接重置和请求路径解析问题。3df5c92: 将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。
@openagentpack/[email protected]
Patch Changes
@openagentpack/[email protected]
Patch Changes
3df5c92: 升级 Vite、Hono 与 Node 静态文件服务依赖,修复开发服务及静态路径处理的已知安全漏洞。
3df5c92: Update the bundled editor to a patched ProseMirror view version and refresh vulnerable build dependencies. Backport bounded nesting and AST traversal checks for the workspace's braces dependency while an official fix is unavailable.
3df5c92: 修复百炼 Session 重连时历史结束状态抢先终止单轮读取的问题,确保恢复期间缓冲的完整回复先交付。
修复结构化资源执行在 StateBackend 最终提交失败时丢失报告的问题,保留远端写入状态、逐资源结果和已知资源 ID,legacy 异常行为保持兼容。
将 Playground 的
@hono/node-server最低版本升级至2.1.6,修复上游 WebSocket 连接重置和请求路径解析问题。3df5c92: 将 Zod 依赖下界更新为 4.6.6,修复 GHSA-mrhx-c7xc-m3w5,避免新安装解析到受影响版本。
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
Updated dependencies [3df5c92]
@openagentpack/[email protected]
Patch Changes